package com.heima.apis.admin;

import com.heima.model.admin.dtos.AdUserDto;
import com.heima.model.admin.pojos.AdUser;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.http.HttpResponse;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletResponse;

@Api(value = "用户登录", tags = "用户Admin登录", description = "用户登录API")
public interface LoginControllerApi {

    /**
     * admin登录功能
     * @param dto
     * @return
     */
    @ApiOperation("admin登录功能")
    public ResponseResult login(@RequestBody AdUserDto dto);

    @ApiOperation("admin登录功能")
    public ResponseResult login(@RequestBody AdUserDto dto, HttpServletResponse response);
}